<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
	<head>
		<title>编辑优惠记录</title>
		<meta name="decorator" content="default"/>
		<script type="text/javascript">
			$(function() {
				//初始化表单验证
				$("#inputForm").initValidform();
			});
		</script>
	</head>
	
	<body class="mainbody">
		<form:form id="inputForm" modelAttribute="orderpromotions" action="${ctx}/qd/orderpromotions/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<!--导航栏-->
			<div class="location">
				<a href="${ctx}/qd/orderpromotions/list" class="back"><i></i><span>返回列表页</span></a>
				<a href="${ctx}/center" class="home"><i></i><span>首页</span></a> 
				<i class="arrow"></i> 
				<a href="${ctx}/qd/orderpromotions/"><span>优惠记录</span></a>
				<shiro:hasPermission name="qd:orderpromotions:edit"><i class="arrow"></i><span>${not empty orderpromotions.id ? '修改':'添加' }优惠记录</span></shiro:hasPermission>
			</div>	
			<div class="line10"></div>
			<!--/导航栏-->
	
			<!--内容-->
			<div id="floatHead" class="content-tab-wrap">
				<div class="content-tab">
					<div class="content-tab-ul-wrap">
						<ul>
							<li><a class="selected" href="javascript:;">优惠记录信息</a></li>
						</ul>
					</div>
				</div>
			</div>
	
			<div class="tab-content">
				<dl>
					<dt>预约课程编号</dt>
					<dd>
						<form:input path="courseorder.id" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入预约课程编号" errormsg="请输入预约课程编号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入预约课程编号</span>
					</dd>
				</dl>
				<dl>
					<dt>促销信息</dt>
					<dd>
					<div class="rule-single-select single-select">
					   <form:select path="promotionId" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入促销编号" errormsg="请输入促销编号" sucmsg=" ">
					   <form:option value="" label="请选择一个促销方式"></form:option>
					   <form:options items="${promotionList }" itemValue="id" itemLabel="name"/>
					   </form:select>
					   </div>
						<span class="Validform_checktip">*请输入促销编号</span>
					</dd>
				</dl>
				<dl>
					<dt>促销金额</dt>
					<dd>
						<form:input path="money" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入促销金额" errormsg="请输入促销金额" sucmsg=" "/>
						<span class="Validform_checktip">*请输入促销金额</span>
					</dd>
				</dl>
				<dl>
					<dt>描述</dt>
					<dd>
						<form:input path="description" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入描述，例如“将状态从'已旷课'改为'已签订'”,“发起扣费150元”，“规定时间外预约”" errormsg="请输入描述，例如“将状态从'已旷课'改为'已签订'”,“发起扣费150元”，“规定时间外预约”" sucmsg=" "/>
						<span class="Validform_checktip">*请输入描述，例如“将状态从'已旷课'改为'已签订'”,“发起扣费150元”，“规定时间外预约”</span>
					</dd>
				</dl>
			</div>
			<!--/内容-->
	
			<!--工具栏-->
			<div class="page-footer">
				<div class="btn-wrap">
					<input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn" /> 
					<input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
				</div>
			</div>
			<!--/工具栏-->
		</form:form>
	</body>
</html>

